﻿namespace PLCS.SocialHttpApi.Models
{
    public record RequestHeader(string app, string code, string seqNo);
    public record ResponseHeader(string code, string seqNo, string message);

    //lims_to_plcs_task_release
    public record RequestBody_task_release(string? stationNo, string? trayNo, int taskType, string? iconType, int testResult);
    public record Request_task_release(RequestHeader header, RequestBody_task_release body);
    public record ResponseBody_task_release(int taskId, string? trayNo = null);
    public record Response_task_relase(ResponseHeader header, ResponseBody_task_release body);

    //plcs_to_lims_task_status
    public record RequestBody_task_status(int taskId);
    public record Request_task_status(RequestHeader header, RequestBody_task_status body);
    public record ResponseBody_task_statuse(int taskId, int status, string trayNo);
    public record Response_task_status(ResponseHeader header, ResponseBody_task_statuse body);

    //plcs_to_lims_tray_location
    public record RequestBody_tray_location(string trayNo);
    public record Request_tray_location(RequestHeader header, RequestBody_tray_location body);
    public record ResponseBody_tray_location(string trayNo, string stationNo);
    public record Response_tray_location(ResponseHeader header, ResponseBody_tray_location body);
}